<%@page import="com.mmy.domain.sys.TSysUser"%>
<!-- 引入地点 -->
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<!-- 引入景点 -->
<%@page import="com.mmy.domain.scenic.TScenicBase"%>
<%@page import="com.mmy.domain.scenic.VScenicBase"%>
<%@page import="com.mmy.domain.scenic.TScenicPlan"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/include1.jsp"></jsp:include>

<title>景区门票管理</title>

</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/FrontHeader.jsp" flush="true"></jsp:include>
<div id="index-back">
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom"> 
		<article> 
		<!--丢弃原来样式 参照前台招标搜索样式 2020.12.30 hanxl 原来class="bg-light ...." -->
			<header class="frontbg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
					<div class="row">
						<div class="span-3 col">
							<h2 class="h2color" >景区门票</h2>
								
						</div>	
						<div class="span-9 col" id="websitesearchdiv" >
						<!-- 12.30 将form表单样式去丢  原有class="info-form" -->
						<form action="tofrontscenicindex"  name="scenicSearchForm" method="post" onSubmit="return scenicSearchSubmit(this);">
							<h4 class="widget-title at-float-right">
							
							<span><label for="ScenicName" class="seachfont"> 景区名称:</label></span>
							<input type="text" id="ScenicName" class="input-width" name="strScenicName" maxlength="64" value="${strScenicName}"/>

							 <span><label for="ScenicZoneID" class="seachfont">所属区域：</label></span>			
							<select class="input-select-vlign  select-height" id="ScenicZoneID" name="strProvinceID" emptyOption="false"
								onchange="changeSelect(this,'getLevel4','level3','ZoneID')">
									<option value="" <c:if test="${strProvinceID==''}"> selected="selected"</c:if>>--请选择--</option>
									<c:forEach var="lstConstZoneProvince" items="${lstConstZoneProvince}">
						<option value="${lstConstZoneProvince.getZoneID()}" <c:if test="${strProvinceID==lstConstZoneProvince.getZoneID()}"> selected="selected"</c:if>>${lstConstZoneProvince.getZoneName()}</option>
						</c:forEach>
							</select> 
							<select class='select-height input-select-vlign ZoneID' name='strCityID'
								emptyOption='false'>
									<option value="" <c:if test="${strCityID==''}"> selected="selected"</c:if>>--请选择--</option>
									<c:forEach var="lstConstZoneCity" items="${lstConstZoneCity}">
											<option value="${lstConstZoneCity.getZoneID()}" <c:if test="${strCityID==lstConstZoneCity.getZoneID()}"> selected="selected"</c:if>>${lstConstZoneCity.getZoneName()}</option>
										</c:forEach>
							</select>	
						<br>
							<span><label for="ScenicPrice1" class="seachfont"> 价格区间:</label></span>
							<input type="number" step="0.01"  id="strScenicPrice1" class="input-width" name="strScenicPrice1" maxlength="18" value="${strScenicPrice1}"/>
							<font class="fontsize">元</font>--
							<input type="number" step="0.01"  id="strScenicPrice2" class="input-width" name="strScenicPrice2" maxlength="18" value="${strScenicPrice2}" /><font class="fontsize">元</font>
							<input type="submit" class="btn btnheight "  value="搜索" />
							</h4>
							</form>
						</div>		
					 </div >
					 </div>
				</header>
		<section class="container">
		<div class="portfolios portfolios-page">
			<c:forEach items="${lstScenicBase}" var="lstScenicBase" varStatus="status">
				<div class="row" id="scenicrow">
					<div class="span-3 col">
						<div class="portfolios-box">
						  
						<a href="/mmy/tofrontscenicbaseinfo?iScenicID=${lstScenicBase.getScenicID()}">
								<img src="imges/${lstScenicBase.getImgPath() }" alt="${lstScenicBase.getScenicName()}" title="${lstScenicBase.getScenicName()}"/>
						</a>	
						</div>
					</div>
				
					<div class="span-6 col" >
						
							<div class="paddingtop3">
						<a href="/mmy/tofrontscenicbaseinfo?iScenicID=${lstScenicBase.getScenicID()}">
							<strong>${lstScenicBase.getScenicName()}</strong>
						</a>		
								<font class="scenicrate">${lstScenicBase.getRate()}</font>
								&nbsp;&nbsp;
							</div>
							<div class="paddingtop2">
							<label class="scenicintro">“${lstScenicBase.getIntro()}”</label>
							</div>
							<div class="paddingtop3">
							
								<font class="scenicadd"><i class="fa fa-map-marker"   aria-hidden="true" ></i>${lstScenicBase.getZoneName()}${lstScenicBase.getAddress()}
								</font>
								
							</div>
					
							
					</div>
					<div class="span-3 col paddingtop2">
					<div class="scenicprice">
						<c:forEach items="${lstScenicPlan}" var="lstScenicPlan">
								<c:if
									test="${lstScenicPlan.getScenicID() eq lstScenicBase.getScenicID()}">
									<font class="scenicprice1">惊爆价:</font>
										<div class="scenicprice2" >
										<div class="at-float-right">
										<font class="scenicprice3">￥</font>
										<font class="scenicprice4">${lstScenicPlan.getPrice()}</font>
										<font class="scenicprice3">起</font>
								</div>
								</div>
								</c:if>
						</c:forEach>
							
							<input type="button" class="btns" value="预留" onclick="reserveScenic(${lstScenicBase.getScenicID()},${tSysUser.getUserID() })" />&nbsp;&nbsp;
					</div>
					</div>
				</div>
			</c:forEach>			
		</div>
		</section> 
		<center>
					<a href="tofrontscenicindex?pageNumber=1&pageSize=${iPageSize}&strScenicName=${strScenicName }&strProvinceID=${strProvinceID }&strCityID=${strCityID}&strScenicPrice1=${strScenicPrice1}&strScenicPrice2=${strScenicPrice2}">首页</a>
						<c:choose>
							<c:when test="${iPageNo == 1}">
						
							</c:when>
							<c:otherwise>
								<a href="tofrontscenicindex?pageNumber=${iPageNo-1}&pageSize=${iPageSize}&strScenicName=${strScenicName }&strProvinceID=${strProvinceID }&strCityID=${strCityID}&strScenicPrice1=${strScenicPrice1}&strScenicPrice2=${strScenicPrice2}">上一页</a>
							</c:otherwise>
						
						</c:choose>
						<c:choose>
							<c:when test="${iPageNo == iMaxPage}">
						
							</c:when>
							<c:otherwise>
								<a href="tofrontscenicindex?pageNumber=${iPageNo+1}&pageSize=${iPageSize}&strScenicName=${strScenicName }&strProvinceID=${strProvinceID }&strCityID=${strCityID}&strScenicPrice1=${strScenicPrice1}&strScenicPrice2=${strScenicPrice2}">下一页</a>
							</c:otherwise>
						
						</c:choose>
							<a href="tofrontscenicindex?pageNumber=${iMaxPage}&pageSize=${iPageSize}&strScenicName=${strScenicName }&strProvinceID=${strProvinceID }&strCityID=${strCityID}&strScenicPrice1=${strScenicPrice1}&strScenicPrice2=${strScenicPrice2}">尾页</a>
						</center>
		</article> 
		</main>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<!-- /st-container -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!-- Script Embed Start -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!-- Main Slider -->
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
		
</body>

</html>